<!doctype html>
<html lang="zh">
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf8">
	<title> 这个是最新 Jiajiao</title> 
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="stylesheet" type="text/css" href="/js/lib/ui-lightness/jquery-ui-1.8.14.custom.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="/js/hw.css?v=12-3" media="screen, projection" />
	
	<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>
	<!--[if IE]>
	<script type="text/javascript">
	(function(){if(!/*@cc_on!@*/0)return;
	var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,hgroup,header,mark,menu,meter,nav,output,progress,section,time,video".split(','),
	i=0,
	length=e.length;
	while(i<length){
		document.createElement(e[i++])
	}
	})();
	</script>
	<![endif]-->
	<script language=javascript src="/js/h.js"	type=text/javascript></script>
	<script language=javascript src="/js/h_c.js"	type=text/javascript></script>
	<?php 
		if(isset($js)){
			if(is_array($js)){
				foreach ($js as $j){
					echo '<script language=javascript src="/js/default/'.$j.'.js"	type=text/javascript></script>';
				}
			}else{
				echo '<script language=javascript src="/js/'.$js.'.js"	type=text/javascript></script>';
			}
		}
	?>
</head>
<body>
<div id="top_header">
	<div id="top_header_nav">
		<div id="top_feedback">
			<a href="javascript:void(0)" title="您希望网站可以做？" id="top_feedback_btn">网站回馈</a>
		</div>
		<div id="user-login">
		<?php 
	//	var_dump($user_data);
		$user_log = $this->session->all_userdata();
		if(isset($user_log['username'])){
			echo '<span id="user-login-name">欢迎，', 
			$user_log['username'], 
			'</span><span id="user-set">
			
			<span class="ui-icon ui-icon-circle-triangle-s" style="float:right"></span>
			
			<ul id="member_func_ul">
				<li><a href="/profile" id="top_profile">个人中心</a></li>
				<li><a href="#">刷新资料</a></li>
				<li><a href="#">订阅学生资料</a></li>
				<li><a href="#">发博文</a></li>
				<li><a href="/member/logout" >退出</a></li>
			</ul></span>';
			
		}else{
			echo '<a href="/member/login">登录</a>/
			<a href="/member/reg">注册</a>';
		}
		?>
			
		</div>
		
	</div>
</div>

<div id="wrapper">
	<header class="head-all">
	<div id="logo" class="logo-left"><a href="/" style="display:block" title="家教网">家教网</a></div>
	<!--<div id="area" class="headerarea">
			<a href="#" >北京</a>
			<a href="#" >上海</a>
			<a href="#" >广州</a>
	</div>
	<div id="cur_area" class="headerarea">
		<a href="#" >北京</a>
	</div>
	-->
	
	<nav>
		<div id="div_search">
			<form id="frmsearch" name="frmsearch" action="/search">
				<input type="search" name="k" id="k" class="corner-all" />
				<input type="submit" value="搜索" class="btn-green corner-all" />
			</form>
		</div>
		<ul>
		<li  id="nav_teacher"><a href="/teacher" class="abg9c6" title="找一个合适的老师">找老师</a></li>
		<li  id="nav_student"><a href="/student">找学生</a></li>		
		<li  id="nav_blog"><a href="/blog">家教随笔</a></li> 
		<!--<li  id="nav_feedback"><a href="/feedback" title="您希望网站可以做？">？</a></li>-->
		</ul>
	</nav>
	
	</header>
	<div id="content">